import consumption.Consumption;

/**
 *
 * @author lty
 */
public class Main {
    public static void main(String[] args) {
        Consumption consumption = ConsumptionFactory.getConsumption(GradeEnum.DEFAULT);
        Double d1 = consumption.doConsume(100);
        System.out.println(d1);

        Consumption consumption2 = ConsumptionFactory.getConsumption(GradeEnum.NORMAL);
        Double d2 = consumption2.doConsume(100);
        System.out.println(d2);

        Consumption consumption3 = ConsumptionFactory.getConsumption(GradeEnum.SUPER);
        Double d3 = consumption3.doConsume(100);
        System.out.println(d3);
    }
}
